use anyhow::Result;
use crate::models::contact::Contact;
use crate::repositories::contact_repository::ContactRepository;

pub struct ContactService;

impl ContactService {
    pub async fn list() -> Result<Vec<Contact>> { ContactRepository::list().await }
    pub async fn add(contact: Contact) -> Result<()> { ContactRepository::add(&contact).await }
}


